#!/usr/bin/python
# -*- coding: utf-8 -*-

class Master(object):
    def __init__(self):
        self.kongfu = ['五香煎饼果子配方']

    def make_cake(self):
        print('运用{0}制作煎饼果子'.format(self.kongfu))


class School(object):
    def __init__(self):
        self.kongfu = ['香辣煎饼果子']

    def make_cake(self):
        print('运用{0}制作煎饼果子'.format(self.kongfu))

class Prentice(School, Master):
    def __init__(self):
        self.kongfu = ['五香臭豆腐煎饼果子']

    def make_cake(self):
        print('运用{0}制作煎饼果子'.format(self.kongfu))


'''
重写的条件
1.依赖于继承
2.重写父类的同名属性和方法
3.
'''


if __name__ == '__main__':
    result = Prentice()
    print(result.kongfu)
    result.make_cake()